<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link href="__PUBLIC__/style/style.css" rel="stylesheet" type="text/css" />
</head>

<body id="page">
<div class="tag"> &gt; 当前位置 &gt; 分类管理&gt;&gt;<span>栏目编辑</span></div>
<div class="page_menu"><a href="__URL__">栏目列表</a></div>
<div class="infobox">
    <form name="add" method="post" action="__URL__/edit" onSubmit="return checkadd()">
      <table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" id="tagContent0">
        <tr>
          <td width="120" align="center" class="td">栏目名称：<font color="#FF0000">*</font></td>
          <td class="td"><input name="title" type="text" value="{$info['name']}" class="input" id="title" size="50"></td>
        </tr>
        <tr>
          <td align="center" class="td">选择分类：</td>
          <td class="td">
          	 <select name="pid" >
			   <?php if($info['pid']==0){ ?>
				<option value="0" selected="selected">无上一级栏目</option>
			   <?php }?>
			   <?php foreach($cat as $vo){ ?>
			  
					<?php if($vo['cid']==$info['pid']){ ?>
						<option value="{$vo['cid']}" selected="selected">{$vo['cname']}</option>
					 <?php } else{?>    
						 <option value="{$vo['cid']}">{$vo['cname']}</option> 
					 <?php } ?> 
				<?php } ?>  
				 <option value="0" >无上一级栏目</option>
			  </select>
          </td>
        </tr>
        <tr id="flag2">
          <td align="center" class="td">分类关键词：</td>
          <td class="td"><textarea name="key" style="width:400px;height:100px; margin-bottom:10px;" class="tet">{$info['keyword']}</textarea></td>
        </tr>
        <tr id="flag2">
          <td align="center" class="td">分类简介：<font color="#FF0000">*</font></td>
          <td class="td"><textarea class="xheditor" name="content" style="width:100%;height:300px;">{$info['description']}</textarea></td>
        </tr>
      </table>
      <table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" >
        <tr>
          <td class="td">&nbsp;</td>
          <td class="td">
          <input name="id" type="hidden" value="{$info['cid']}" />
           <input name="do" type="hidden" value="yes" />
          <input type="submit"  name="update" class="button" value="更新栏目">
            <input type="button" onClick="history.go(-1)" class="button" value="放弃返回"></td>
        </tr>
      </table>
    </form>
</div>
</body>
</html>